import { Router } from 'express';
import { TeacherController } from '../controllers/teacher.controller';

const router = Router();
const teacherController = new TeacherController();

router.get('/', (req, res) => teacherController.getTeachers(req, res));
router.get('/:id', (req, res) => teacherController.getTeacherById(req, res));
router.get('/:id/courses', (req, res) => teacherController.getTeacherCourses(req, res));

export default router;
